package com.qk.sankuai.inf.leaf.common;

import java.io.IOException;
import java.util.Properties;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

public class PropertyFactory {
  private static final Logger logger = LoggerFactory.getLogger(PropertyFactory.class);
  private static final Properties prop = new Properties();

  static {
    try {
      prop.load(
          PropertyFactory.class
              .getClassLoader()
              .getResourceAsStream("com.sankuai.inf.leaf.properties"));
    } catch (IOException e) {
      logger.warn("Load Properties Ex", e);
    }
  }

  public static Properties getProperties() {
    return prop;
  }
}
